package com.five.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @author keibdye
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("章节实体类")
public class Chapter {

    @ApiModelProperty("唯一id")
    private Long id;

    @ApiModelProperty("课程id")
    private Long courseId ;

    @ApiModelProperty("状态（0-上架 1-下架)")
    private Integer state ;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("章节播放顺序")
    private Integer sequence;

    @ApiModelProperty("播放量")
    private Integer viewCount;

    @ApiModelProperty("视频地址")
    private String videoUrl;

    @ApiModelProperty("时长")
    private String duration;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
